export const isMobile = () => {
	const userAgent = navigator.userAgent || navigator.vendor || window.opera;

	// 检查是否是移动设备
	if (/windows phone/i.test(userAgent)) {
		return true;
	}

	if (/android/i.test(userAgent)) {
		return true;
	}

	if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
		return true;
	}

	return false;
}